package com.easylinkin.linkappapi.ruleengine.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 智能规则联动配置关联设备表
 * </p>
 *
 * @author TongJie
 * @since 2020-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rule_trigger_ref_device")
public class RuleTriggerRefDevice extends Model<RuleTriggerRefDevice> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("id")
    private String id;

    /**
     * 触发器 id
     */
    @TableField("rule_trigger_id")
    private String ruleTriggerId;

    /**
     * 设备编号
     */
    @TableField("device_code")
    private String deviceCode;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
